package xx.iverson.school_manage.service;

import xx.iverson.school_manage.entity.OperationRecord;

import java.util.HashMap;
import java.util.List;

/**
 * @author wei77
 */
public interface OperationRecordService {
    // 增加积分操作记录
    boolean addIncreaseOperationRecord(OperationRecord operationRecord);

    // 减少积分操作记录
    boolean addDecreaseOperationRecord(OperationRecord operationRecord);

    // 批量添加积分操作记录
    boolean batchAddIncreaseOperationRecord(List<OperationRecord> operationRecords);

    // 批量减少积分操作记录
    boolean batchAddDecreaseOperationRecord(List<OperationRecord> operationRecords);

    // 查询操作记录
    List<OperationRecord> getOperationRecords(Integer userId);

    // 根据月份查询操作记录
    List<OperationRecord> findOperationRecordsByMonth(int year, int month,int userId);

    // 根据月份导出操作记录
    List<OperationRecord> exportOperationRecordsByMonth(int start, int end,int userId);

    // 根据月份导出多人操作记录
    HashMap<String,List<OperationRecord>> exportMultipleOperationRecordsByMonth(int startDate, int endDate, List<Integer> userIds);
}
